for value in range(1,5):
    print(value)

players = ['charles', 'martina', 'michael', 'florence', 'eli']
print(players[0:3])
print(players[1:2])
print(players[1:])
print(players[:3])
print(players[-3:])


print(sorted(players))
for a in sorted(players[:4]):
    print(a)

my_foods = ['pizza', 'falafel', 'carrot cake']
#复制切片
friend_foods = my_foods[0:]
my_foods.append('baozi')
friend_foods.append('miaotiao')
print("My favorite foods are:")
print(my_foods)
print("\nMy friend's favorite foods are:")
print(friend_foods)



my_foods = ['pizza', 'falafel', 'carrot cake']
friend_foods = my_foods
my_foods.append('baozi')
friend_foods.append('miaotiao')
print("My favorite foods are:")
print(my_foods)
print("\nMy friend's favorite foods are:")
print(friend_foods)